package com.uestc.vshop.ytgoodprintandroid.base;

import android.support.v7.widget.Toolbar;
import android.view.View;

import com.uestc.vshop.ytgoodprintandroid.R;

import me.yokeyword.fragmentation.SupportFragment;

/**
 * Created by flyln on 2017/10/2 16:00.
 * email:xyf_uestc@163.com
 */

public class YTBaseFragment extends SupportFragment {
    protected void initToolbarNav(Toolbar toolbar) {
        toolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_24dp);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                pop();
            }
        });
    }
}

